<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
%>
<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <title>下载赚钱</title>
    <script type="text/javascript" src="<%=path %>/static/js/jquery.js"></script>
    <script type="text/javascript" src="<%=path %>/static/js/formview.js?v=2"></script>
    <script type="text/javascript" src="<%=path %>/static/js/tool.js"></script>
    <script type="text/javascript" src="<%=path %>/static/layer/layer.js"></script>
    <script type="text/javascript" src="js/js.js"></script>
    <link rel="stylesheet" type="text/css" href="css/css.css?v=2" />
    <style>
       .text2 img{
          width:2.8rem !important;
       }
    </style>
</head>
<body style="background:#eceff4">
   <form id="form1">
      <ul class="demo_ul">
         <li>
            <a href="#">
               <div class="price">
                  +<span name="price" uitype="text"></span>元
               </div>
               <div uitype="img" name="picUrl1">

               </div>
               <div class="text">
                  <div name="name" uitype="text" class="text1">
                     京东
                  </div>
                  <div class="text2">
                     <span uitype="text" name="size"></span>M<br>
                     <div uitype="text" name="summary"></div>
                  </div>
               </div>
            </a>
         </li>
         <li>
            <div class="text">
               <div class="text1">
                  任务说明：
               </div>
               <div class="text2" uitype="text" name="instruction">
                  ×××××××××××××××××
               </div>
            </div>
         </li>
         <li>
            <div class="text">
               <div class="text1">
                  应用截图：
               </div>
               <div class="text2">
                  <span uitype="img" name="picUrl2" style="float:left;">

                  </span>
                  <span uitype="img" name="picUrl3" style="float:left;margin-left:0.1rem;">

                  </span>
               </div>
            </div>
         </li>
         <li>
            <div class="text">
               <div class="text1">
                  应用描述：
               </div>
               <div class="text2" uitype="text" name="note">
                  ×××××××××××××××××
               </div>
            </div>
         </li>
      </ul>
      <div style="height:1rem"></div>
      <div class="demo_download" id="demo_download">
         <a href="javascript:void(0)">下载</a>
      </div>
      <div id="apk" uitype="text" name="apk" style="display:none">
      </div>
   </form>
   <script>
      $(function(){
         var formSetting = {po:'QhDemo'};
         var form = new FormView("form1",formSetting);
         form.initwebview("${param.id}","QhDemo");

         $("#demo_download").click(function(){
            $.getJSON("<%=path %>/wechat/tool/DemoDownLoad.htmls",{id:"${param.id}",cashMoney:$("span[name=price]").text(),uid:"${param.uid}"},function(data){
               if(data=="1"){
                  location.href=$("#apk").text();
               }
               else{
                  layer.msg('您已下载过');
               }
            });
         });

      });
   </script>
</body>
</html>
